Pod::Spec.new do |s|
  s.name = "MAKPay"
  s.version = "1.1.3"
  s.summary = "MAK 开发包中支付模块"
  s.license = {"type"=>"Copyright", "text"=>"Copyright © 2017年 mark."}
  s.authors = {"mark"=>"zhuwenhui5566@163.com"}
  s.homepage = "https://gitee.com/z_mark"
  s.requires_arc = true
  s.source = { :git => "https://gitee.com/z_mark/MAKPayKit.git" , :tag => "#{s.version}" }

  s.user_target_xcconfig = { 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES' }
  s.ios.deployment_target    = '8.0'

  #设置 podspec 的默认 subspec
  s.default_subspec = 'core'

  #主要 subspec
  s.subspec 'core' do |c|
    c.dependency 'MAKCorePay'
  end

  # #ipaynow
  # s.subspec 'IPayNowAll' do |ipna|
  #  ipna.dependency 'MAKPay/core'
  #  ipna.source_files  = 'Classes/Ipaynow/*.{h,m}'
  #  ipna.public_header_files = "Classes/Ipaynow/*.h"
  #  ipna.vendored_libraries = "Classes/Ipaynow/iphone+simulator/*.a"
  #  ipna.ios.frameworks = 'SystemConfiguration', 'CoreMotion','CFNetwork','CoreTelephony','CoreGraphics','QuartzCore','CoreText'
  #  ipna.ios.libraries = 'z','c++','sqlite3.0','c++', 'stdc++'
  #  ipna.vendored_frameworks = 'Classes/Ipaynow/AliPayPlugin/AlipaySDK.framework'
  #  ipna.resource = 'Classes/Ipaynow/AliPayPlugin/AlipaySDK.bundle'
  #  ipna.xcconfig = { 'OTHER_LDFLAGS' => '-ObjC' }
  # end

  #Alipay
  s.subspec 'Alipay' do |alipay|
    alipay.dependency 'MAKAliPay'
  end  

  #Wxpay
  s.subspec 'Wxpay' do |wxpay|
    wxpay.dependency 'MAKWxPay'
  end

end
